package com.chenshu;

/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2024-03-26
 * Time：16:19
 */
public class Obj {
    private String name = "mimi";
    public int age = 20;

    public Obj() {
    }

    @Override
    public String toString() {
        return "Obj{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public Obj(String name) {
        this.name = name;
    }

    public void sayHi() {
        System.out.println(this.name + " say: hi!");
    }
}
